package it.infodea.tapestrydea.utils;

import javax.activation.MimetypesFileTypeMap;

public class FileUtil {
	
	private static final MimetypesFileTypeMap fileTypeMap = new MimetypesFileTypeMap(FileUtil.class.getResourceAsStream("mime.types"));
	
	static{
//		fileTypeMap.addMimeTypes("")
	}
	
	public static String getMimeType(String fileName) {
		return fileTypeMap.getContentType(fileName);
	}
}
